#pragma once
#include<stdio.h>
#include<stdlib.h>
#include<assert.h>
#include<stdbool.h>

#define ElemType int

typedef struct StackNode
{
	ElemType data;
	struct StackNode* next;
}StackNode;

typedef StackNode* LinkStack;

bool IsEmpty(LinkStack* stack);

void InitLinkStack(LinkStack* stack);

void Push(LinkStack* stack, ElemType x);

void Pop(LinkStack* stack);

bool GetTop(LinkStack* stack, ElemType* v);

void Show(LinkStack* stack);

int Length(LinkStack* stack);

void Clear(LinkStack* stack);

void Destory(LinkStack* stack);